#ifndef __MYI2C_H
#define __MYI2C_H
#include "stm32f10x.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_gpio.h"
#include "delay.h"
#include "sys.h"


#define IIC_SCL_PIN GPIO_Pin_3
#define IIC_SDA_PIN GPIO_Pin_4

#define  IIC_SCL  		PBout(3) 
#define  IIC_SDA  		PBout(4) 
#define  IIC_SDA_R  	PBin(4)

//#define  SGP30_SDA_R	GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_11)


void MyI2C_Init(void);
void MyI2C_Start(void);
void MyI2C_Stop(void);
void MyI2C_SendByte(uint8_t Byte);
uint8_t MyI2C_ReceiveByte(void);
void MyI2C_SendAck(uint8_t AckBit);
uint8_t MyI2C_ReceiveAck(void);

#endif
